package com.cly.feign;

import com.cly.domain.Sku;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "product-service")
public interface CartSkuFeign {

    /**
     * 远程调用根基skuId 查询 sku 集合
     * @param skuId
     * @return
     */
    @PostMapping("prod/prod/getSkuListByIds")
    List<Sku> getSkuListByIds(@RequestBody List<Long> skuId);

}
